package cn.gan.loveofsoul.entity.vo;

import cn.gan.loveofsoul.entity.PhotoUploadRecord;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author ganwh
 * @since 2023-10-26
 */
@Getter
@Setter
@ToString
public class PhotoAlbumVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 相册ID
     */
    private Integer id;

    @NotNull(message = "暂未登录")
    private Integer userId;

    private UserVO userVO;

    /**
     * 所属情侣关系ID
     */
    @NotNull(message = "未绑定情侣关系")
    private Integer relationshipId;

    /**
     * 相册名称
     */
    @NotBlank(message = "请输入相册名称")
    @Length(max = 10, message = "相册名称最多可输入10个字")
    private String albumName;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 照片集合
     */
    private List<PhotoUploadRecord> photoList;

    /**
     * 照片数量
     */
    private Long photoCount;
}
